//入口文件
import Vue from 'vue';

//路由
import VueRouter from 'vue-router';
Vue.use(VueRouter)

//过滤器
import moment from 'moment';
Vue.filter('dateFormat',function(dateStr,patten="YYYY-MM-DD HH:mm:ss"){
  return moment(dateStr).format(patten)
})


//vue-resource
import VueResource from 'vue-resource';
Vue.use(VueResource)
//配置默认的请求api地址
Vue.http.options.root='http://vue.studyit.io'

 
//mui样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

// mintui注册
import { Header,Swipe,SwipeItem,Button} from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

//路由导入
import router from './router'

//shilihua
import app from './App.vue'

var vm=new Vue({
  el:'#app',
  data:{},
  render: c=>c(app),
  router
})